package com.ruoyi.teaching.mapper;

import java.util.List;
import com.ruoyi.teaching.domain.TeachingClassesStudents;
import org.apache.ibatis.annotations.Param;

/**
 * 班级学员Mapper接口
 * 
 * @author ruoyi
 * @date 2022-10-18
 */
public interface TeachingClassesStudentsMapper 
{
    /**
     * 查询班级学员
     * 
     * @param classStudentId 班级学员主键
     * @return 班级学员
     */
    public TeachingClassesStudents selectTeachingClassesStudentsByClassStudentId(Long classStudentId);

    /**
     * 查询班级学员列表
     * 
     * @param teachingClassesStudents 班级学员
     * @return 班级学员集合
     */
    public List<TeachingClassesStudents> selectTeachingClassesStudentsList(TeachingClassesStudents teachingClassesStudents);

    /**
     * 新增班级学员
     * 
     * @param teachingClassesStudents 班级学员
     * @return 结果
     */
    public int insertTeachingClassesStudents(TeachingClassesStudents teachingClassesStudents);

    /**
     * 修改班级学员
     * 
     * @param teachingClassesStudents 班级学员
     * @return 结果
     */
    public int updateTeachingClassesStudents(TeachingClassesStudents teachingClassesStudents);

    /**
     * 删除班级学员
     * 
     * @param classStudentId 班级学员主键
     * @return 结果
     */
    public int deleteTeachingClassesStudentsByClassStudentId(Long classStudentId);

    /**
     * 批量删除班级学员
     * 
     * @param classStudentIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteTeachingClassesStudentsByClassStudentIds(String[] classStudentIds);

    /**
     *  查询班级学生
     * @param classId 班级ID
     * @return 班级学员
     */
    public TeachingClassesStudents selectTeachingClassesStudentsByClassIdAndStudentId(@Param("classId")Long classId, @Param("studentId")Long studentId);
}
